package com.stx.chat.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;

@Data
public class User {

    private Integer id;
    private String username;
    @JsonIgnore
    private String password;
    private String avatar;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date addtime;

}
